package com.zjw.zy.heart.domain;


import java.io.Serial;
import java.io.Serializable;

import com.zjw.zy.heart.constant.AppColorStyle;
import lombok.Data;

/**
 * 
 * @TableName t_app_ui_mode
 */
@Data
public class AppUiMode implements Serializable {
    /**
     * 
     */
    private Integer id;

    /**
     * 
     */
    @AppColorStyle.Des
    private Integer colorStyle;

    @Serial
    private static final long serialVersionUID = 1L;

    @Override
    public boolean equals(Object that) {
        if (this == that) {
            return true;
        }
        if (that == null) {
            return false;
        }
        if (getClass() != that.getClass()) {
            return false;
        }
        AppUiMode other = (AppUiMode) that;
        return (this.getId() == null ? other.getId() == null : this.getId().equals(other.getId()))
            && (this.getColorStyle() == null ? other.getColorStyle() == null : this.getColorStyle().equals(other.getColorStyle()));
    }

    @Override
    public int hashCode() {
        final int prime = 31;
        int result = 1;
        result = prime * result + ((getId() == null) ? 0 : getId().hashCode());
        result = prime * result + ((getColorStyle() == null) ? 0 : getColorStyle().hashCode());
        return result;
    }

    @Override
    public String toString() {
        StringBuilder sb = new StringBuilder();
        sb.append(getClass().getSimpleName());
        sb.append(" [");
        sb.append("Hash = ").append(hashCode());
        sb.append(", id=").append(id);
        sb.append(", colorStyle=").append(colorStyle);
        sb.append(", serialVersionUID=").append(serialVersionUID);
        sb.append("]");
        return sb.toString();
    }
}